package org.ghost.consul.server.controller;

import org.ghost.consul.common.response.HttpRspDTO;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestMethod;
import org.springframework.web.bind.annotation.RestController;

/**
 * Created by yarnliu on 2017-10-27.
 */
@RequestMapping("hello")
@RestController
public class HelloController {
    @RequestMapping(value = "/world", method = RequestMethod.GET)
    public HttpRspDTO getWorld() {
        return new HttpRspDTO(true, "hi world");
    }
}
